<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			//location.href="https://www.pzhu.cn/"
		</script>
	</head>
	<body>		
	  <div id="con">
	    <div>这是div的文本</div>
	    这是没有标记的文本
	    <!-- 这是注释 --></div>
	  <script>
	    let x = document.getElementById("con");
	    x.childNodes.forEach(function(node) {			  
	       console.log("子节点类型:"+node.nodeType+",节点内容:"+node.nodeValue);
	    });
	  </script>
	</body>
</html>
